
#
# App
#

huser	:= hello

obj-y += main.o

# basic rules for elf
export HBUILD_ELF_LDS_$(huser)  = $(huser).lds
export HBUILD_ELF_INIT_$(huser) = $(HBUILD_GENERAL_INIT)
export HBUILD_ELF_MAIN_$(huser) = $(obj-y)
export HBUILD_ELF_LIBS_$(huser) = $(HBUILD_GENERAL_LIBS)

elf-objs:=$(foreach bn,$(obj-y),$(obj)/$(bn))
elf-y += $(obj)/$(huser).elf

# basic rules for elf
ifeq ($(CC),gcc)
HBUILD_GENERAL_LIBS +=
endif

$(src)/%.lds.S: FORCE
	@cat $(HTOP_DIR)/scripts/linker.lds.S > $@

clean-files	+= $(huser).lds.S

# Declare the contents of the .PHONY variable as phony.  We keep that
# information in a variable se we can use it in if_changed and friends.

PHONY += FORCE
FORCE:

.PHONY: $(PHONY)
